package com.teafriend.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.teafriend.entity.Admin;
import com.teafriend.service.AdminService;
import com.teafriend.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 欧楚杨
* @description 针对表【admin】的数据库操作Service实现
* @createDate 2022-05-17 12:56:11
*/
@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin>
    implements AdminService{
    @Autowired
    AdminMapper adminMapper;

    @Override
    public boolean updateInfo(Integer id, String pwd){
        int i = adminMapper.updateUserpwdById(pwd, id);
        return i == 1;
    }
}




